package com.wushi.lenovo.asia5b.app_di;

import com.mvp.base.BaseApplication;


/**
 * 这个专门获取静态的Component对象(此对象的类在编译器已经生成了)
 */
public class APPComponentFactory {


    public static AppBaseComponent appBaseComponent;

    public static AppBaseComponent getAppBaseComponent() {
        if (appBaseComponent == null) {
            appBaseComponent = DaggerAppBaseComponent.builder()
                    .applicationComponent(BaseApplication.getApplicationComponent())
                    .build();
        }
        return appBaseComponent;
    }

}
